package org.jeecg.modules.demo.zc.parkingSpace.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ZC_PARKING_SPACE")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ParkingSpace对象", description="ParkingSpace")
public class ParkingSpace implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
    /**车位编号*/
    @Excel(name = "车位编号", width = 15)
    @ApiModelProperty(value = "车位编号")
    private String spaceCode;
    /**所属停车场*/
    @Excel(name = "所属停车场", width = 15)
    @ApiModelProperty(value = "所属停车场")
    private String park;
    /**所在区域*/
    @Excel(name = "所在区域", width = 15)
    @ApiModelProperty(value = "所在区域")
    private String area;
    /**车位类型 1:- NORMAL（普通车位） 2:- NEW_ENERGY（新能源车位，可能配充电桩）*/
    @Excel(name = "车位类型", width = 15)
    @ApiModelProperty(value = "车位类型")
    @Dict(dicCode = "parkingSpace_spaceType")
    private Integer spaceType;
    /**创建时间*/
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
}
